package com.mayikt.service;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName Test013
 * @Author 蚂蚁课堂余胜军 QQ644064779 www.mayikt.com
 * @Version V1.0
 **/
public class Test013 {
    public static void main(String[] args) {
        List<String> listString = new ArrayList<String>();
        for (int i = 0; i < 3000000; i++) {
            //字符串常量池
            listString.add(String.valueOf(i).intern());
        }

    }
}
